package com.itboye.lottery.widget.medium_textview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import org.jsoup.nodes.Element;

/**
 * ElementView
 * <p>
 * Created by Mr.w on 2018/9/11.
 * <p>
 * 版本      ${version}
 * <p>
 * 修改时间
 * <p>
 * 修改内容
 */

public abstract class ElementView extends LinearLayout {

    private Element element;

    protected ElementView(Context context, Element element) {
        super(context);
        this.element = element;
        render();
    }

    protected ElementView(Context context, AttributeSet attrs, Element element) {
        super(context, attrs);
        this.element = element;
        render();
    }

    public Element getElement() {
        return element;
    }

    public void setElement(Element element) {
        this.element = element;
    }

    public abstract void render();
}
